var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function (req, res, next) {

    if (req.protocol === 'https') {

        res.status(200).send('This is https !');

    } else {

        res.status(200).send('This is http !');

    }
});

module.exports = router;
